package com.atguigu.system.manager;

import com.atguigu.model.system.SysLoginLog;
import com.atguigu.model.system.SysRole;
import com.atguigu.model.vo.loginlog.SysLoginLogQueryReqVo;
import com.atguigu.model.vo.loginlog.SysLoginLogQueryRespVo;
import com.atguigu.system.mapper.SysLoginLogMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SysLoginLogManager
 * </p>
 *
 * @author flyduck
 * @since 2023/10/26
 */
@Component
public class SysLoginLogManager extends ServiceImpl<SysLoginLogMapper, SysLoginLog> {

    @Autowired
    private SysLoginLogMapper sysLoginLogMapper;

    /**
     * 获取分页列表
     * @param pageParam
     * @param reqVo
     * @return
     */
    public IPage<SysLoginLogQueryRespVo> getPageList(Page<SysLoginLog> pageParam, SysLoginLogQueryReqVo reqVo) {
        return sysLoginLogMapper.getPageList(pageParam,reqVo);
    }
}
